Clears the contents of the IP address control
#Include <GuiIPAddress.au3>
_GUICtrlIpAddressClear ( hwnd )
Parameters
hwnd | handle to a GUI IP Address control |
Return Value
Remarks
None
Related
_GUICtrlIpAddressSet
Example
#include <GuiIPAddress.au3>
Opt("MustDeclareVars", 1)
_Main()
Func _Main()
Local $msg, $hgui, $clear, $button, $hIPAddress
$hgui = GUICreate("IP Address Control Create Example", 300, 150)
$hIPAddress = _GUICtrlIpAddressCreate ($hgui, 10, 10, 125, 30, $WS_THICKFRAME)
$clear = GUICtrlCreateButton("Clear IP", 10, 50, 80, 20)
$button = GUICtrlCreateButton("Exit", 100, 100, 100, 25)
_GUICtrlIpAddressSet ($hIPAddress, "24.168.2.128")
GUISetState(@SW_SHOW)
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE Or $msg = $button
Exit
Case $msg = $clear
_GUICtrlIpAddressClear ($hIPAddress)
EndSelect
WEnd
EndFunc ;==>_Main